<?php
/**
 * 文件名：face.mod.php
 * 版本号：1.0
 * 最后修改时间：2011年3月31日
 * 作者：狐狸<foxis@qq.com>
 * 功能描述: 头像模
 */

if(!defined('IN_JISHIGOU'))
{
	exit('invalid request');
}

class ModuleObject extends MasterObject
{


	function ModuleObject($config)
	{
		$this->MasterObject($config);

		$this->Execute();
	}

	function Execute()
	{
		ob_start();
		 
		switch($this->Code)
		{
			case 'show':
				$this->ShowFace();
				break;

			default:
				$this->Main();
				break;
		}

		response_text(ob_get_clean());
	}

	function Main()
	{
		response_text('正在建设中……');
	}

	function ShowFace()
	{
		$insert = $this->Post['insert'];

		$getname = $this->Post['getname'];

		$divid = $this->Post['eid'];
		$plasce = $this->Post['plasce'];
		
		if($getname == 'tusiji_face'){
		 $getface = $plasce.'tusiji_face';
		}else{
		 $getface = $plasce.'topicface';
		}
        
		$this->topicface = ConfigHandler::get($getface);
        $facelist = $this->topicface;
		
		include($this->TemplateHandler->Template('showface'));
	}
}

?>
